﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Hero
    {
        private string heroname;
        private string heroinfo;
        private int gongji;
        private int fangyu;
        private int shudu;
        private string nickname;



        public Hero(string heroname, string heroinfo, int gongji, int fangyu, int shudu, string nickname)
        {
            this.heroname = heroname;
            this.heroinfo = heroinfo;
            this.gongji = gongji;
            this.fangyu = fangyu;
            this.shudu = shudu;
            this.nickname = nickname;
        }

        public void Test()
        
        {
            Console.WriteLine("英雄名字为{0}，英雄介绍{1}，攻击为{2}，防御为{3}，速度为{4}，" +
                "玩家名字为{5}",this.heroname,this.heroinfo,this.gongji,this.fangyu,this.shudu,this.nickname);
        
        }
        public string Heroname
        {
            get { return this.heroname; }
            set { this.heroname = value; }
        }
        public string Heroinfo 
        {
            get {return this.heroinfo; }
            set { this.heroinfo = value; }
        }
        public int Gongji
        {
            get { return this.gongji; }
            set { this.gongji = value; }
        }
        public int Fangyu
        {
            get { return this.fangyu; }
            set { this.fangyu = value; }
        }
        public int Shudu
        {
            get { return this.shudu; }
            set { this.shudu = value; }
        }
        public string Nickname
        {
            get { return this.nickname; }
            set { this.nickname = value; }
        }
    }
}
